package com.aaa.three.mapper;

import com.aaa.three.pojo.query.AdminInfoDept;
import com.aaa.three.pojo.query.AdminInfoOffice;
import com.aaa.three.pojo.query.DeptState;

import java.util.List;

public interface AdminQueryOfficeMapper {
    List<AdminInfoDept> queryDept();

    AdminInfoOffice getOffice(int id);

    List<AdminInfoOffice> queryOffice();

    List<AdminInfoOffice> listOffice(int id);

    List<DeptState> queryState();


    int updateOffice(AdminInfoOffice adminInfoOffice);

    int deleteOffice(int id);

    int addOffice(AdminInfoOffice adminInfoOffice);

    int countName(String name);


    int getDstate(Integer did);

    int addRole(int oid);

    int addArole(int oid);

}
